package test1;

public class Animal {
    String name;
    int legs;
    Animal(){
        this("AAAA",4);

    }

    Animal(String name,int legs){
        this.name = name;
        this.legs = legs;

    }

    public void move(){
        move(1);
    }

    public void move(int n){
        for(int i=0;i<n;i++){
            System.out.println(name+" Moving");
        }
    }


}
